#ifndef __TEAM_MANAGER_H__
#define __TEAM_MANAGER_H__

class Team;
class TeamManager:public manager<Team,TeamId>,public singleton<TeamManager>
{
public:
	TeamManager();
	virtual ~TeamManager();
	virtual Team* Add(TeamId id);
	virtual bool Remove(TeamId id);

	TeamId createTeam(PlayerId stPlayerId);
	void destroyTeam(PlayerId stPlayerId);

protected:
	PlayerId		m_stLeader;
	std::vector<PlayerId> m_vectorPlayers;
private:
};
#endif
